package nbcb;

import java.util.Scanner;

public class G {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, ans, num;
        while (sc.hasNext()) {
            ans = 1;
            n = sc.nextInt();
            for (int i = 0; i < n; i++) {
                num = sc.nextInt();
                if ((num & 1) == 1) {
                    ans *= num;
                }
            }
            System.out.println(ans);
        }
    }
}
